﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    public class Interview
    {
        /// <summary>
        /// 数据唯一标识符
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }
        /// <summary>
        /// 走访人员
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? peop { get; set; }
        /// <summary>
        /// 走访时间
        /// </summary>
        [Required]
        public DateTime Time { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? Name { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        public int Age { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public bool Sex { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? IDNumber { get; set; }
        /// <summary>
        /// 籍贯
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? nativeplace { get; set; }
    }
}
